﻿$(document).ready(function () {

    $("#FW_Regist").bind("click", function () {
        debugger;
        var userName = $("#FW_Name").val();
        var passwd = $("#FW_Passwd").val();
        var _data = {};
        _data["regist_userName"] = userName;
        _data["regist_passwd"] = passwd;
        $.ajax({
            type: "post",
            dataType: "json",
            async: true,
          
            url: "/MainPage/RegistAction",
            data: _data,
            beforeSend: function (x) {
            },
            success: function (data) {
                alert(data);
            },
            error: function (x, e) {
                alert(x.responseText);
            }
        });
    });
});